package com.moli.iov.model.dto.req;

import java.io.Serializable;
import java.util.List;

/**
  *@ClassName
  *@Description TODO
  *@Author lixy
  *@Date 2019/3/1 13:52
  *
  **/
public class PageExtend<T> implements Serializable {
  /** 当前页记录 **/
  private List<T> records;
  /** 每页记录数 **/
  private Long pageSize;
  /** 当前页码 **/
  private Long pageNumber;
  /** 总记录数 **/
  private Long total;

  public PageExtend(List<T> records, Long pageSize, Long pageNumber, Long pageTotals){
    this.pageNumber=pageNumber;
    this.records=records;
    this.pageSize=pageSize;
    this.total=pageTotals;
  }

  public PageExtend() {
    this.pageNumber=1L;
    this.pageSize=10L;
    this.total=0L;
  }

  public List<T> getRecords() {
    return records;
  }

  public void setRecords(List<T> records) {
    this.records = records;
  }

  public Long getPageSize() {
    return pageSize;
  }

  public void setPageSize(Long pageSize) {
    this.pageSize = pageSize;
  }

  public Long getPageNumber() {
    return pageNumber;
  }

  public void setPageNumber(Long pageNumber) {
    this.pageNumber = pageNumber;
  }

  public Long getTotal() {
    return total;
  }

  public void setTotal(Long total) {
    this.total = total;
  }

}
